import { cover } from "@/utils/shared";

const outerConfig = JSON.parse(JSON.stringify(window.systemConfig)); // 深拷贝，防止通过控制台修改
delete window.systemConfig;

// axios配置
const axiosConfig = {
  SERVER_API_BASE_URL: process.env.VUE_APP_SERVER_API_BASE_URL,
  SERVER_API_TIMEOUT: 10000,
};
cover(axiosConfig, outerConfig);
Object.freeze(axiosConfig);

export { axiosConfig };
